7.4
HIGH CVSS 3.1
CVE-2025-53101
ImageMagick Stack Overflow
Description

ImageMagick is free and open-source software used for editing and manipulating digital images. In versions prior to 7.1.2-0 and 6.9.13-26, in ImageMagick's `magick mogrify` command, specifying multiple consecutive `%d` format specifiers in a filename template causes internal pointer arithmetic to generate an address below the beginning of the stack buffer, resulting in a stack overflow through `vsnprintf()`. Versions 7.1.2-0 and 6.9.13-26 fix the issue.

INFO

Published Date :

July 14, 2025, 8:15 p.m.

Last Modified :

July 15, 2025, 8:15 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2025-53101 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Imagemagick imagemagick
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH [email protected]
Solution
Update ImageMagick to version 7.1.2-0 or 6.9.13-26 to fix stack overflow.
  • Update ImageMagick to version 7.1.2-0.
  • Update ImageMagick to version 6.9.13-26.
References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-53101 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-53101 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-53101 vulnerability anywhere in the article.

  • Daily CyberSecurity
A New Linux Malware Hides in Plain Sight by Weaponizing File Names

Linux has long been considered a fortress of security—a preferred platform for developers, system administrators, and security professionals worldwide. But according to new research from the Trellix A ... Read more

Published Date: Aug 25, 2025 (2 days, 13 hours ago)
  • Daily CyberSecurity
ImageMagick Patches Multiple Flaws: High-Severity Memory Bugs Fixed

The maintainers of ImageMagick have patched four security vulnerabilities that could impact applications using the popular image manipulation toolkit, including high-severity memory corruption bugs th ... Read more

Published Date: Aug 15, 2025 (1 week, 5 days ago)
  • Daily CyberSecurity
ImageMagick Flaw (CVE-2025-53101): Stack Buffer Overflow Allows Potential Remote Code Execution

A flaw has been discovered in ImageMagick, the widely used open-source image manipulation suite, that could lead to stack buffer overflows under specific conditions involving image filename templates. ... Read more

Published Date: Jul 15, 2025 (1 month, 1 week ago)

The following table lists the changes that have been made to the CVE-2025-53101 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Aug. 25, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Added CPE Configuration OR *cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* versions up to (excluding) 6.9.13-26 *cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* versions from (including) 7.0.0-0 up to (excluding) 7.1.2-0
    Added Reference Type GitHub, Inc.: https://github.com/ImageMagick/ImageMagick/commit/66dc8f51c11b0ae1f1cdeacd381c3e9a4de69774 Types: Patch
    Added Reference Type CISA-ADP: https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qh3h-j545-h8c9 Types: Exploit, Vendor Advisory
    Added Reference Type GitHub, Inc.: https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qh3h-j545-h8c9 Types: Exploit, Vendor Advisory
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jul. 15, 2025

    Action Type Old Value New Value
    Added Reference https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qh3h-j545-h8c9
  • New CVE Received by [email protected]

    Jul. 14, 2025

    Action Type Old Value New Value
    Added Description ImageMagick is free and open-source software used for editing and manipulating digital images. In versions prior to 7.1.2-0 and 6.9.13-26, in ImageMagick's `magick mogrify` command, specifying multiple consecutive `%d` format specifiers in a filename template causes internal pointer arithmetic to generate an address below the beginning of the stack buffer, resulting in a stack overflow through `vsnprintf()`. Versions 7.1.2-0 and 6.9.13-26 fix the issue.
    Added CVSS V3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
    Added CWE CWE-124
    Added Reference https://github.com/ImageMagick/ImageMagick/commit/66dc8f51c11b0ae1f1cdeacd381c3e9a4de69774
    Added Reference https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qh3h-j545-h8c9
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 7.4
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact